package com.leyou.search.client;

import com.leyou.item.api.SpecificationApi;
import com.leyou.item.pojo.SpecParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("item-service")
public interface SpecificationClient extends SpecificationApi {

    @RequestMapping("params")
    List<SpecParam> queryGroupsByGid(@RequestParam(value = "gid", required = false) Long gid,
                                                            @RequestParam(value = "cid", required = false) Long cid,
                                                            @RequestParam(value = "generic", required = false) Boolean generic,
                                                            @RequestParam(value = "searching", required = false) Boolean searching);
}
